﻿using Serilog;
using Serilog.Core;
using Serilog.Events;

namespace Proxy
{
    public class SerilogHandle
    {
        /// <summary>
        /// 系统日志
        /// </summary>
        public static Logger Logger_System = new LoggerConfiguration().WriteTo.File("logs\\System-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// 自动扫码
        /// </summary>
        public static Logger Logger_AutoScanner = new LoggerConfiguration().WriteTo.File("logs\\AutoScanner-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Csv文件解析
        /// </summary>
        public static Logger Logger_DealWithCsv = new LoggerConfiguration().WriteTo.File("logs\\DealWithCsv-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Infeed
        /// </summary>
        public static Logger Logger_Infeed = new LoggerConfiguration().WriteTo.File("logs\\Infeed-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Outfeed
        /// </summary>
        public static Logger Logger_Outfeed = new LoggerConfiguration().WriteTo.File("logs\\Outfeed-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Movement
        /// </summary>
        public static Logger Logger_Movement = new LoggerConfiguration().WriteTo.File("logs\\Movement-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Infeed
        /// </summary>
        public static Logger Logger_InfeedTransport = new LoggerConfiguration().WriteTo.File("logs\\InfeedTransport-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// Outfeed
        /// </summary>
        public static Logger Logger_OutfeedTransport = new LoggerConfiguration().WriteTo.File("logs\\OutfeedTransport-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_Plc = new LoggerConfiguration().WriteTo.File("logs\\Plc-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P10 = new LoggerConfiguration().WriteTo.File("logs\\P10-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P20 = new LoggerConfiguration().WriteTo.File("logs\\P20-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P35 = new LoggerConfiguration().WriteTo.File("logs\\P35-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P30 = new LoggerConfiguration().WriteTo.File("logs\\P30-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P40 = new LoggerConfiguration().WriteTo.File("logs\\P40-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P50 = new LoggerConfiguration().WriteTo.File("logs\\P50-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P65 = new LoggerConfiguration().WriteTo.File("logs\\P65-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P60 = new LoggerConfiguration().WriteTo.File("logs\\P60-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P70 = new LoggerConfiguration().WriteTo.File("logs\\P70-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P80 = new LoggerConfiguration().WriteTo.File("logs\\P80-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P90 = new LoggerConfiguration().WriteTo.File("logs\\P90-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P100 = new LoggerConfiguration().WriteTo.File("logs\\P100-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P101 = new LoggerConfiguration().WriteTo.File("logs\\P101-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P102 = new LoggerConfiguration().WriteTo.File("logs\\P102-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P201 = new LoggerConfiguration().WriteTo.File("logs\\P201-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// PLC日志
        /// </summary>
        public static Logger Logger_P202 = new LoggerConfiguration().WriteTo.File("logs\\P202-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// 数据库日志
        /// </summary>
        public static Logger Logger_Search = new LoggerConfiguration().WriteTo.File("logs\\Search-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// 数据库日志
        /// </summary>
        public static Logger Logger_Modify = new LoggerConfiguration().WriteTo.File("logs\\Modify-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
        /// <summary>
        /// 数据库日志
        /// </summary>
        public static Logger Logger_Delete = new LoggerConfiguration().WriteTo.File("logs\\Delete-.txt", LogEventLevel.Verbose, "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}", null, 1073741824L, null, buffered: false, shared: false, null, RollingInterval.Day, rollOnFileSizeLimit: false, 31).CreateLogger();
    }
}
